package cn.xiaopengstack.domain.activity.model.aggregate;

import cn.xiaopengstack.domain.activity.model.entity.RaffleActivityEntity;
import cn.xiaopengstack.domain.activity.model.entity.RaffleActivityOrderEntity;
import cn.xiaopengstack.domain.activity.model.entity.RaffleActivitySkuEntity;
import cn.xiaopengstack.types.utils.TimeUtils;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author jiangyangang
 * @description 下单聚合对象
 * @create 2024-03-16 10:32
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CreateRechangeQuotaOrderAggregate {

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 活动实体
     */
    private RaffleActivityEntity activityEntity;

    /**
     * 增加；总次数
     */
    private Integer totalCount;

    /**
     * 增加；日次数
     */
    private Integer dayCount;

    /**
     * 增加；月次数
     */
    private Integer monthCount;

    /**
     * 活动订单实体
     */
    private RaffleActivityOrderEntity raffleActivityOrderEntity;

    /**
     * 对哪天进行充值
     */
    private Long rechargeTime;

    /**
     * SKU实体
     */
    private RaffleActivitySkuEntity skuEntity;
    /**
     * 获取当天时间
     * @return
     */
    public String currentDay() {
        return TimeUtils.getDayByNow();
    }

    /**
     * 获取当前月份
     * @return
     */
    public String currentMonth() {
        return TimeUtils.getMonthByNow();
    }
}
